package com.jenings.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jenings.shop.entity.Seller;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Mapper
public interface SellerMapper extends BaseMapper<Seller> {
    //卖家接口
    //查询全部卖家
    public List<Seller> selectAll();
    //查询部分卖家
    public List<Seller> selectSome(String mjname);
    //查询固定卖家
    public Seller selectByte(String mjname);
    //卖家修改个人信息
    public boolean updateByte(Seller seller);
    //添加卖家
    public boolean insertByte(Seller seller);
    //删除卖家
    public boolean delByte(Integer mjid);
}
